package com.wits.qso.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wits.platform.service.BaseService;
import com.wits.qso.dao.GradeDao;
import com.wits.qso.entity.Grade;

@Component
public class GradeService extends BaseService<Grade, String>{
	
	private GradeDao gradeDao;
	
	/**
	 * 注入gradeDao	
	 * @param gradeDao
	 */
	@Autowired
	public void setGradeDao(GradeDao gradeDao) {
		this.baseDao=gradeDao;
		this.gradeDao = gradeDao;
	}	
	
	public boolean isExitGradebyTitle(String title) {
		return gradeDao.isExitGradebyTitle(title);
	}
}
